package com.lyl.dangdang.service;

import com.lyl.dangdang.pojo.Result;
import com.lyl.dangdang.pojo.dto.LoginDto;
import com.lyl.dangdang.pojo.dto.PayDateDto;
import com.lyl.dangdang.pojo.dto.RegisterDto;
import com.lyl.dangdang.pojo.po.User;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liyunlong
 * @since 2024-06-03
 */
public interface IUserService extends IService<User> {
/***
* @Description: 登录接口
* @Author: Liyunlong
* @Date: 2024/6/3
*/
    Result login(LoginDto user);

    Result register(RegisterDto registerDto);

    Result getRegisterInfo(Long id);

    void getCode(HttpServletResponse response);

    Result verifyRegisterCode(RegisterDto registerCodeDto);

    Result getUserAddress();

    Result getUserCartsBook();

    Result payOrder(PayDateDto payDateDto);
}
